home *** CD-ROM | disk | FTP | other *** search
/ Exploring Where & Why / Exploring Where & Why.iso / pc / MODULES / LESSON04 / ACT04A / common4.cst / 00036_play instructions.ls < prev    next >
Encoding:
Text File  |  2003-05-01  |  414 b   |  17 lines

  1. global gFollowPathObj
  2.  
  3. on exitframe me
  4.   if the spriteNum of me <0 then  --only if it's a frame script
  5.     set destName=getDestinationName(gFollowPathObj)
  6.     animateSpeaker 117,[destName&".instructions"]
  7.   end if
  8. end
  9.  
  10.  
  11. on mouseUp me
  12.   if the spriteNum of me >0 then  --only if it's a sprite script
  13.     set destName=getDestinationName(gFollowPathObj)
  14.     animateSpeaker 117,[destName&".instructions"]
  15.   end if
  16. end
  17.